package cn.geckos.mock
{
	import cn.geckos.ioc.factory.BeanFactoryAware;
	import cn.geckos.ioc.factory.IBeanFactory;
	import mx.core.IFactory;
	
	public class PlainTest implements BeanFactoryAware
	{
		private var _name:String;
		private var _date:String;
		private var _factory:IBeanFactory;
		
		public function set name(name:String):void
		{
			this._name = name;
		}
		public function get name():String
		{
			return this._name;
		}
		
		public function set date(date:String):void
		{
			this._date = date;
		}
		public function get date():String
		{
			return this._date;
		}
		
		public function equals(o:Object):Boolean
		{
			if(o != this)
			{
				if(o is PlainTest)
				{
					var pt:PlainTest = o as PlainTest;
					if(pt.date == this.date && pt.name == this.name)
					{
						return true;
					}
				}
			}else
			{
				return true;
			}
			return false;
		}
		
		public function setFactory(factory:IBeanFactory):void
		{
			this._factory = factory;
		}
		public function getFactory():IBeanFactory
		{
			return this._factory;
		}
	}
}